package com.sptus.mapper.slave;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sptus.common.annotation.DataSource;
import com.sptus.common.enums.DataSourceType;
import com.sptus.entity.SptUserParent;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

//@DS("multi-datasource1")
@DataSource(DataSourceType.SLAVE)
public interface SptUserParentMapper extends BaseMapper<SptUserParent> {

    List<HashMap<String, String>> selectListInfo(@Param("ew") LambdaQueryWrapper<SptUserParent> sptUserParentLambdaQueryWrapper);

    List<HashMap<String, String>> selectChildListInfo(@Param("ew") LambdaQueryWrapper<SptUserParent> sptUserParentLambdaQueryWrapper);
}
